package com.it.service;

import com.github.pagehelper.PageInfo;
import com.it.pojo.User;
import com.it.pojo.vo.UserVo;

import java.util.List;

/**
 * @author: zgc
 * @version: 1.0
 * @description:
 * @date: 2023/12/13 16:38
 */
public interface UserService {

    List<UserVo> findAll();

    User findNameAndPwd(String username,String password);

    int updateUser(User user);

    int insertUser(User user);

    int updateById(String userId,String infoId);


    /*分页查询*/
    PageInfo<UserVo> findPage(Integer pageNo,Integer pageSize);

    /*根据userId查询UserVo对象*/
    UserVo findById(String userId);

    /*修改user表和userinfo表*/

    int updateUserInfo(UserVo vo);

    /*根据userId查询user信息*/
    User findEditById(String userId);

    /*根据用户名查询用户信息*/
    User findByName(String loginName);

    List<User> queryAll();

}
